package com.xinke.module.system.model.vo.mail;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 邮件模版新增/修改 Request VO")
@Data
public class MailTemplateSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30672")
    private Long templateId;

    @Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "模板名称不能为空")
    private String templateName;

    @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "模板编码不能为空")
    private String templateCode;

    @Schema(description = "发送的邮箱账号编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20580")
    @NotNull(message = "发送的邮箱账号编号不能为空")
    private Long mailAcctId;

    @Schema(description = "发送人名称", example = "李四")
    private String templateNickName;

    @Schema(description = "模板标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "模板标题不能为空")
    private String templateTitle;

    @Schema(description = "模板内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "模板内容不能为空")
    private String templateContent;

    @Schema(description = "参数数组", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "参数数组不能为空")
    private String templateParams;

    @Schema(description = "开启状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "开启状态不能为空")
    private Integer templateStatus;

    @Schema(description = "备注", example = "你猜")
    private String remark;

}